public class OrderSystemTest {
    public static void main(String[] args) {
        Customer customer = new Customer("C001", "19863463464", "北京市xx小区");

        Dish beefNoodle = new StapleDish("红烧牛肉面", "劲道面条+大块牛肉", 28.0, 10, true, 550);
        Dish iceCola = new DrinkDish("冰镇雪碧", "330ml罐装", 5.0, 20, true, true);
        Dish expiredCake = new DessertDish("芝士蛋糕", "已过期样品", 32.0, 5, false, 420);

        Order order = new Order("O001", customer);
        try {
            order.addDish(beefNoodle, 2);
            order.addDish(iceCola, 3);
            order.printOrderInfo();
        } catch (DishOffShelfException | InsufficientStockException e) {
            System.out.println("点餐失败：" + e.getMessage());
        }
    }
}